import React from 'react';
import s from './style.module.css';
import Breadcrumb, { Item } from '../../../components/Breadcrumb';
import Info from './info';
import TaskTable from './taskTable';
import Label from '../../../components/Label';
import { Link } from 'react-router-dom';

export default function Weakness() {
	const [refresh, setRefresh] = React.useState(0)
	return (
		<div className={s.taskMain}>
			{/* <div className={s.headerTip}>
				ScanV主机漏洞监测功能开启内测，部分功能正在实验中，诚挚邀请您接入
				<Link to="/asset-manage/manage/host">主机检测</Link>
				，期待您的宝贵建议。
				<Link to="/job-manage/host-task">主机任务列表</Link>
			</div> */}
			<div className={s.taskMainContent}>
				<Breadcrumb>
					<Item disabled>
						任务管理
					</Item>
					<Item>
						主机安全监测
					</Item>
				</Breadcrumb>
				<div className={s.content}>
					<Label className={s.labelDetail}>概况</Label>
					<Info refresh={refresh}/>
					<Label className={s.labelDetail}>任务列表</Label>
					<TaskTable setRefresh={setRefresh}/>
				</div>
			</div>
		</div>
	);
}
